const { request } = require('./request')


module.exports = {
    //登录
    toLogin: (data) => {
        return request(`qmmh/hall/xcxlogin`, 'POST', data)
    },

    getPhone: (data) => {
        const jwt = wx.getStorageSync('jwt');
        return request(`qmmh/hall/getuserphonenumber?jwt=${jwt}`, 'POST', data)
    },

    //二维码核销
    codeWriteoff: (data) => {
        const jwt = wx.getStorageSync('jwt');
        return request(`code/writeoff?jwt=${jwt}`, 'GET', data)
    },


}